package org.querycreator.core;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * 
 * 
 * @author Luciano Molinari
 *
 */
public class QuerySpecification implements Serializable {
	private static final long serialVersionUID = -1406432252123671371L;
	
	private List<Restriction> restrictions = new ArrayList<Restriction>();
	
	public QuerySpecification() {}

	public QuerySpecification addRestriction(Restriction restriction) {
		restrictions.add(restriction);
		return this;
	}
	
	public List<Restriction> getRestrictions() {
		return Collections.unmodifiableList(restrictions);
	}
	
}